﻿@model IEnumerable<OurWedding1.Models.ConfirmationKey>
<table style="width: 100%">
    <thead>
        <tr>

            <th>
                GuestGroup
            </th>
            <th>
                isReleased
            </th>
            <th>
                ConfirmationDate
            </th>
            <th>
                isConfirmed
            </th>
            <th>
                Key
            </th>
            <th></th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model)
        {
            <tr>

                <td>
                    @Html.ActionLink(item.GuestGroup.Name, "Details", new { id = item.ConfirmationKeyId })

                </td>
                <td>
                    @Html.DisplayFor(ModelItem => item.isReleased)
                </td>
                <td>
                    @Html.DisplayFor(ModelItem => item.ConfirmationDate)
                </td>
                <td>
                    @Html.DisplayFor(ModelItem => item.isConfirmed)
                </td>
                <td>
                    @Html.DisplayFor(ModelItem => item.Key)
                </td>
                <td>
                    @Html.ActionLink("Edit", "Edit", new { id = item.ConfirmationKeyId }, new { @class = "editIconLink" })

                    @Html.ActionLink("Delete", "Delete", new { id = item.ConfirmationKeyId }, new { @class = "deleteIconLink" })
                    @Html.ActionLink("PDF", "RenderPdf", new { id = item.ConfirmationKeyId }, new { @class = "pdfIconLink" })
                </td>
            </tr>
        }
    </tbody>
</table>
